
package com.newdriver.prac;
//类中方法外

public class Prac2 {
    public static void main(String[] args) {
        Test t1 = new Test();
        Test t2 = new Test(2);
    }
}

class Test{
    {
        System.out.println("====");
    }
    public Test() {
        System.out.println("空参");
    }
    public Test(int a){
        System.out.println("带参");
        }
    }




